package com.bsg.upm.constant;

/**
 * 任务字典项常量类
 * 
 * @author HCK
 *
 */
public class TaskDictConstants {

	/****************************** 任务对象类型 STA ******************************/
	/**
	 * 任务对象类型：软件镜像
	 */
	public static final String OBJ_TYPE_SOFTWARE_IMAGE = "software_image";

	/**
	 * 任务对象类型：主机
	 */
	public static final String OBJ_TYPE_HOST = "host";

	/**
	 * 任务对象类型：服务
	 */
	public static final String OBJ_TYPE_SERV = "serv";

	/**
	 * 任务对象类型：单元
	 */
	public static final String OBJ_TYPE_UNIT = "unit";
	/****************************** 任务对象类型 END ******************************/

	/****************************** 任务动作类型 STA ******************************/
	// 注：任务动作类型和操作动作相同
	/**
	 * 任务动作类型：创建
	 */
	public static final String ACTION_TYPE_CREATE = "create";
	
	/**
	 * 任务动作类型：扩容
	 */
	public static final String ACTION_TYPE_SCALE_UP = "scale_up";
	
	/**
	 * 任务动作类型：版本变更
	 */
	public static final String ACTION_TYPE_IMAGE_UPDATE = "image_update";

	/**
	 * 任务动作类型：入库
	 */
	public static final String ACTION_TYPE_INPUT = "input";

	/**
	 * 任务动作类型：出库
	 */
	public static final String ACTION_TYPE_OUTPUT = "output";
	
	/**
	 * 任务动作类型：启用
	 */
	public static final String ACTION_TYPE_ENABLE = "enable";

	/**
	 * 任务动作类型：停用
	 */
	public static final String ACTION_TYPE_DISABLE = "disable";

	/**
	 * 任务动作类型：启动
	 */
	public static final String ACTION_TYPE_START = "start";

	/**
	 * 任务动作类型：停止
	 */
	public static final String ACTION_TYPE_STOP = "stop";

	/**
	 * 任务动作类型：删除
	 */
	public static final String ACTION_TYPE_REMOVE = "remove";

	/**
	 * 任务动作类型：重建
	 */
	public static final String ACTION_TYPE_REBUILD = "rebuild";
	
	/**
	 * 任务动作类型：备份
	 */
	public static final String ACTION_TYPE_BACKUP = "backup";
	
	/**
	 * 任务动作类型：还原
	 */
	public static final String ACTION_TYPE_RESTORE = "restore";
	
	/**
	 * 任务动作类型：迁移
	 */
	public static final String ACTION_TYPE_MIGRATE = "migrate";
	
	/**
	 * 任务动作类型：隔离
	 */
	public static final String ACTION_TYPE_ISOLATE = "isolate";
	
	/**
	 * 任务动作类型：回切
	 */
	public static final String ACTION_TYPE_RECOVER = "recover";
	/****************************** 任务动作类型 END ******************************/

	/***************************** 任务执行状态 STA *****************************/
	/**
	 * 任务执行状态：未知
	 */
	public static final String STATUS_UNKNOWN = "unknown";

	/**
	 * 任务执行状态：创建中
	 */
	public static final String STATUS_CREATE_RUNNING = "create_running";

	/**
	 * 任务执行状态：创建成功
	 */
	public static final String STATUS_CREATE_SUCCESS = "create_success";

	/**
	 * 任务执行状态：创建失败
	 */
	public static final String STATUS_CREATE_FAILURE = "create_failure";
	
	/**
	 * 任务执行状态：扩容中
	 */
	public static final String STATUS_SCALE_UP_RUNNING = "scale_up_running";

	/**
	 * 任务执行状态：扩容成功
	 */
	public static final String STATUS_SCALE_UP_SUCCESS = "scale_up_success";

	/**
	 * 任务执行状态：扩容失败
	 */
	public static final String STATUS_SCALE_UP_FAILURE = "scale_up_failure";
	
	/**
	 * 任务执行状态：版本变更中
	 */
	public static final String STATUS_IMAGE_UPDATE_RUNNING = "image_update_running";

	/**
	 * 任务执行状态：版本变更成功
	 */
	public static final String STATUS_IMAGE_UPDATE_SUCCESS = "image_update_success";

	/**
	 * 任务执行状态：版本变更失败
	 */
	public static final String STATUS_IMAGE_UPDATE_FAILURE = "image_update_failure";

	/**
	 * 任务执行状态：入库中
	 */
	public static final String STATUS_INPUT_RUNNING = "input_running";

	/**
	 * 任务执行状态：入库成功
	 */
	public static final String STATUS_INPUT_SUCCESS = "input_success";

	/**
	 * 任务执行状态：入库失败
	 */
	public static final String STATUS_INPUT_FAILURE = "input_failure";

	/**
	 * 任务执行状态：出库中
	 */
	public static final String STATUS_OUTPUT_RUNNING = "output_running";
	
	/**
	 * 任务执行状态：出库成功
	 */
	public static final String STATUS_OUTPUT_SUCCESS = "output_success";

	/**
	 * 任务执行状态：出库失败
	 */
	public static final String STATUS_OUTPUT_FAILURE = "output_failure";
	
	/**
	 * 任务执行状态：启用中
	 */
	public static final String STATUS_ENABLE_RUNNING = "enable_running";

	/**
	 * 任务执行状态：启用成功
	 */
	public static final String STATUS_ENABLE_SUCCESS = "enable_success";

	/**
	 * 任务执行状态：启用失败
	 */
	public static final String STATUS_ENABLE_FAILURE = "enable_failure";

	/**
	 * 任务执行状态：停用中
	 */
	public static final String STATUS_DISABLE_RUNNING = "disable_running";

	/**
	 * 任务执行状态：停用成功
	 */
	public static final String STATUS_DISABLE_SUCCESS = "disable_success";

	/**
	 * 任务执行状态：停用失败
	 */
	public static final String STATUS_DISABLE_FAILURE = "disable_failure";


	/**
	 * 任务执行状态：启动中
	 */
	public static final String STATUS_START_RUNNING = "start_running";

	/**
	 * 任务执行状态：启动成功
	 */
	public static final String STATUS_START_SUCCESS = "start_success";

	/**
	 * 任务执行状态：启动失败
	 */
	public static final String STATUS_START_FAILURE = "start_failure";

	/**
	 * 任务执行状态：停止中
	 */
	public static final String STATUS_STOP_RUNNING = "stop_running";

	/**
	 * 任务执行状态：停止成功
	 */
	public static final String STATUS_STOP_SUCCESS = "stop_success";

	/**
	 * 任务执行状态：停止失败
	 */
	public static final String STATUS_STOP_FAILURE = "stop_failure";

	/**
	 * 任务执行状态：删除中
	 */
	public static final String STATUS_REMOVE_RUNNING = "remove_running";

	/**
	 * 任务执行状态：删除成功
	 */
	public static final String STATUS_REMOVE_SUCCESS = "remove_success";

	/**
	 * 任务执行状态：删除失败
	 */
	public static final String STATUS_REMOVE_FAILURE = "remove_failure";
	
	/**
	 * 任务执行状态：备份中
	 */
	public static final String STATUS_BACKUP_RUNNING = "backup_running";

	/**
	 * 任务执行状态：备份成功
	 */
	public static final String STATUS_BACKUP_SUCCESS = "backup_success";

	/**
	 * 任务执行状态：备份失败
	 */
	public static final String STATUS_BACKUP_FAILURE = "backup_failure";
	
	/**
	 * 任务执行状态：还原中
	 */
	public static final String STATUS_RESTORE_RUNNING = "restore_running";

	/**
	 * 任务执行状态：还原成功
	 */
	public static final String STATUS_RESTORE_SUCCESS = "restore_success";

	/**
	 * 任务执行状态：还原失败
	 */
	public static final String STATUS_RESTORE_FAILURE = "restore_failure";
	
	/**
	 * 任务执行状态：迁移中
	 */
	public static final String STATUS_MIGRATE_RUNNING = "migrate_running";

	/**
	 * 任务执行状态：迁移成功
	 */
	public static final String STATUS_MIGRATE_SUCCESS = "migrate_success";

	/**
	 * 任务执行状态：迁移失败
	 */
	public static final String STATUS_MIGRATE_FAILURE = "migrate_failure";
	
	/**
	 * 任务执行状态：重建中
	 */
	public static final String STATUS_REBUILD_RUNNING = "rebuild_running";

	/**
	 * 任务执行状态：重建成功
	 */
	public static final String STATUS_REBUILD_SUCCESS = "rebuild_success";

	/**
	 * 任务执行状态：重建失败
	 */
	public static final String STATUS_REBUILD_FAILURE = "rebuild_failure";
	
	/**
	 * 任务执行状态：隔离中
	 */
	public static final String STATUS_ISOLATE_RUNNING = "isolate_running";

	/**
	 * 任务执行状态：隔离成功
	 */
	public static final String STATUS_ISOLATE_SUCCESS = "isolate_success";

	/**
	 * 任务执行状态：隔离失败
	 */
	public static final String STATUS_ISOLATE_FAILURE = "isolate_failure";
	
	/**
	 * 任务执行状态：回切中
	 */
	public static final String STATUS_RECOVER_RUNNING = "recover_running";

	/**
	 * 任务执行状态：回切成功
	 */
	public static final String STATUS_RECOVER_SUCCESS = "recover_success";

	/**
	 * 任务执行状态：回切失败
	 */
	public static final String STATUS_RECOVER_FAILURE = "recover_failure";
	/****************************** 任务执行状态 END ******************************/

	public static final String TASK_TIMEOUT_MSG = "任务超时";

}
